# debug stuff 
CFLAGS = -g
AR  = ar -cqs
# itermidiate objects
OBJ =  libflycache.o md5.o util_rbtree.o  conhash_inter.o conhash_util.o conhash.o
CC = gcc
TEST_OBJS = test.o 
EXEFILE = test
		
# include file path
INC = -I. -I.

TARGETS = libflycache.a test
 
all : $(TARGETS)

# build libconhash as a static lib 
libflycache.a : $(OBJ) 
	$(AR) $@ $(OBJ)
	
# build test 
test : $(TEST_OBJS)
	${CC} -O -o $@ $(TEST_OBJS) -L. libflycache.a 
%.o : %.c
	${CC} $(INC) $(CFLAGS) -c $< -o $@	
clean:
	rm -rf ${EXEFILE} *.o *.a
